package com.hzky.demo.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by admin on 2017/6/6.
 */
@Entity
@Table(name = "entry_table")
public class EntryTable {

    @Id
    @Column(name = "p_phone")
    String p_phone;

    @Column(name = "state",nullable = false)
    String state;

    @Column(name = "location",nullable = false)
    String location;

    @Column(name = "date",nullable = false)
    Date date;

    public String getP_phone() {
        return p_phone;
    }

    public void setP_phone(String p_phone) {
        this.p_phone = p_phone;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }
}
